﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;

namespace sx_windows.utils
{
    public static class TextUtil
    {
        public static bool IsEmpty(string s)
        {
            return s== null || s.Length == 0;
        }
        public static bool WifiPasswordValid(string pass)
        {
            if (pass.Length < 8)
            {
                return false;
            }
            Regex reg = new Regex(@"[\u4e00-\u9fa5]");
            return !reg.IsMatch(pass);
        }

    }
}
